package com.aloda.utils;

import java.util.regex.Pattern;

public class DescriptionUtils {

    public static boolean checkDescription(String desc) {
        // 校验账号
        Pattern descPattern = Pattern.compile("^.{0,50}$");
        return desc != null
                && !desc.isEmpty()
                && descPattern.matcher(desc).matches();
    }
}
